package to;

public class MachineTO {
	private String machineName;
	private String machineStatus;
	private String cleanDate;
	private int waitingJob;
	private String prograssRecipe;
	
	public MachineTO() {}

	public MachineTO(String machineName, String machineStatus,
			String cleanDate, int waitingJob, String prograssRecipe) {
		this.machineName = machineName;
		this.machineStatus = machineStatus;
		this.cleanDate = cleanDate;
		this.waitingJob = waitingJob;
		this.prograssRecipe = prograssRecipe;
	}

	public String getMachineName() {
		return machineName;
	}

	public void setMachineName(String machineName) {
		this.machineName = machineName;
	}

	public String getMachineStatus() {
		return machineStatus;
	}

	public void setMachineStatus(String machineStatus) {
		this.machineStatus = machineStatus;
	}

	public String getCleanDate() {
		return cleanDate;
	}

	public void setCleanDate(String cleanDate) {
		this.cleanDate = cleanDate;
	}

	public int getWaitingJob() {
		return waitingJob;
	}

	public void setWaitingJob(int waitingJob) {
		this.waitingJob = waitingJob;
	}

	public String getPrograssRecipe() {
		return prograssRecipe;
	}

	public void setPrograssRecipe(String prograssRecipe) {
		this.prograssRecipe = prograssRecipe;
	}

	@Override
	public String toString() {
		return "MachineTO [machineName=" + machineName + ", machineStatus="
				+ machineStatus + ", cleanDate=" + cleanDate + ", waitingJob="
				+ waitingJob + ", prograssRecipe=" + prograssRecipe + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((cleanDate == null) ? 0 : cleanDate.hashCode());
		result = prime * result
				+ ((machineName == null) ? 0 : machineName.hashCode());
		result = prime * result
				+ ((machineStatus == null) ? 0 : machineStatus.hashCode());
		result = prime * result
				+ ((prograssRecipe == null) ? 0 : prograssRecipe.hashCode());
		result = prime * result + waitingJob;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MachineTO other = (MachineTO) obj;
		if (cleanDate == null) {
			if (other.cleanDate != null)
				return false;
		} else if (!cleanDate.equals(other.cleanDate))
			return false;
		if (machineName == null) {
			if (other.machineName != null)
				return false;
		} else if (!machineName.equals(other.machineName))
			return false;
		if (machineStatus == null) {
			if (other.machineStatus != null)
				return false;
		} else if (!machineStatus.equals(other.machineStatus))
			return false;
		if (prograssRecipe == null) {
			if (other.prograssRecipe != null)
				return false;
		} else if (!prograssRecipe.equals(other.prograssRecipe))
			return false;
		if (waitingJob != other.waitingJob)
			return false;
		return true;
	}
	
}
